package user;

import operation.*;

import java.util.Scanner;

public class NormalUser extends User {
    public NormalUser(String name) {
        super(name);
        this.iOperations = new IOperation[]{
                new Exit(),
                new ShowVehicle(),
                new RentMgrSys(),
                new ExchangeVehicle(),
                new PayVehicle()
        };
    }

    @Override
    public int menu() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("********** 欢迎光临腾飞汽车租赁公司 **********");
        System.out.println("hello " + this.name + "用户");
        System.out.println("1.查看车辆！");
        System.out.println("2.租借车辆！");
        System.out.println("3.更换车辆！");
        System.out.println("4.付款！");
        System.out.println("0.退出系统！");
        System.out.print("请输入你要进行的操作: ");
        return scanner.nextInt();
    }
}
